# $Id: PKGBUILD 88005 2013-04-09 21:46:51Z eric $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>

pkgname=qgo
pkgver=1.5.4
pkgrel=5
pkgdesc="Go client and full featured SGF editor"
arch=('x86_64' 'i686')
url="http://qgo.sourceforge.net/"
license=('GPL')
depends=('qt3' 'libsm')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-r3.tar.gz"
        'gcc43.patch'
        'gcc45.patch')
sha256sums=('ddfb66ada7027b844838895061f266bda03b327e8dfec2ee2782e14748bac104'
            'f6ddd28325523e3d5aabac2284334c73114dd823e00bf282aae2646982206e78'
            '7f94acfe58d75b57d55bab5b296a801d48f54c8e12dfc1556cd1586abebd3580')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  patch -Np1 -i "$srcdir/gcc43.patch"
  patch -Np1 -i "$srcdir/gcc45.patch"
  ./configure --prefix=/usr --with-qt-includes=/usr/include/qt3
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
